package com.intelligentmeterreadingsys.waterlist.querywaterlist.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.intelligentmeterreadingsys.R;
import com.intelligentmeterreadingsys.waterbanding.activity.WaterBandingUploadActivity;
import com.intelligentmeterreadingsys.waterlist.copywater.activity.CopyWaterUploadActivity;

/**
 * 无线上传主界面
 * 
 * @author king
 * 
 */
public class RadioReportActivity extends Activity implements OnClickListener {
    public Button button1;// 抄表上传
    public Button button2;// 图文上传
    public Button button3;// 绑定上传

    @Override
    protected void onCreate(Bundle savedInstanceState) {

	super.onCreate(savedInstanceState);
	setContentView(R.layout.radio_report_main);
	button1 = (Button) findViewById(R.id.radio_report_copy_upload);
	button2 = (Button) findViewById(R.id.radio_report_tuwen_upload);
	button3 = (Button) findViewById(R.id.radio_report_banding_upload);
	button1.setOnClickListener(this);
	button2.setOnClickListener(this);
	button3.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
	Intent intent = null;
	switch (v.getId()) {

	case R.id.radio_report_copy_upload:
	    intent = new Intent(this, CopyWaterUploadActivity.class);
	    startActivity(intent);
	    break;
	case R.id.radio_report_tuwen_upload:
	    intent = new Intent(this, NavigationUploadActivity.class);
	    startActivity(intent);
	    break;
	case R.id.radio_report_banding_upload:
	    intent = new Intent(this, WaterBandingUploadActivity.class);
	    startActivity(intent);
	    break;
	default:
	    break;
	}
    }

}
